package com.dream.keigezhushou.Activity.pop;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;

import com.dream.keigezhushou.R;


/**
 * Created by mxmf-001 on 17/2/24.
 */

public class MoreWindowToMusicMessage extends DialogBase {

        private  LinearLayout l_singer;
    private LinearLayout l_musicMessage;

    private Context context;

    private ItemClickListener itemClickListener;


    /**
     * @param contentView
     * @param context
     * @param width
     * @param height      设置高度
     */
    public MoreWindowToMusicMessage(View contentView, Context context, int width, int height) {
        super(contentView, context, width, height);
        this.context = context;
       l_singer=(LinearLayout) contentView.findViewById(R.id.l_singer);
        l_musicMessage=(LinearLayout)contentView.findViewById(R.id.l_musicMessage);
        l_singer.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (itemClickListener!=null){
                    itemClickListener.onClick();
                }
                dismiss();

            }
        });

        l_musicMessage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });


    }


    public void setItemListener(ItemClickListener itemClickListener) {

        this.itemClickListener = itemClickListener;
    }



    public interface ItemClickListener {

        public void onClick();
    }


}
